<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">		
		<form class="well form-inline margin-top-20" method="post" action="{:url('Statis/slist')}">
           <input type="text"  name="storeid"  value="{$storeid}" style="display:none;">
        时间:
        <input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" style="width: 140px;" autocomplete="off">-
		<input type="text" class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('Statis/slist')}">清空</a>
        <!-- <a title="数据导出" onclick="exportdata()" id="export" class="btn btn-success" style="margin-left: 10px;">数据导出</a> -->
       <input name='storeid' value='{$storeid}' style="display:none;">
        </form>
        <table class="table table-hover table-bordered table-striped">
           <thead>
              <tr>
                  <th style='text-align:center;'>总金额:￥{$sum}</th>
              </tr>
            </thead>
         </table>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th align="left">时间</th>
					<th align="left">总额</th>
					<th align="left">店铺</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.time}</td>
					<td>{$vo.money}</td>
					<td>{$vo.store_name}</td><!-- 店铺 -->
				</tr>
				</foreach>
			</tbody>
		</table>
	</div>	
	<script>
function exportdata()
{
	var orderNo=$("#orderNo").val();
	var cardid=$("#cardid").val();
	var starttime=$("#start_time").val();
	var endtime=$("#end_time").val();
	location="./importData?orderNo="+orderNo+"&cardid="+cardid+"&starttime="+starttime+"&endtime="+endtime;

}
</script>  
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>